<style>
    .card-time{
        border-color:#c1c1c1;
        border-radius: 5px;
    }
    .su-box{
        display: inline-block;
        width: 270px;
    }
    [class*=am-u-]+[class*=am-u-]:last-child{float:left;}
</style>
<div class="page-home row-content am-cf">
    <!--商城统计 -->
    <div class="row am-g doc-am-g ">
        <div class="am-u-sm-12 am-u-md-6 am-u-lg-6 am-margin-bottom">
            <div class="widget-head">
                <div class="widget-title">代理下级数量统计</div>
            </div>
            <div class="widget-body am-cf">
                <?php $agentInfo=\think\Session::get('yoshop_agent.agent');?>
                <?php if ($agentInfo['type'] == 0): ?>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__red am-cf">
                            <div class="card-header">运营商总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['yunyingshangCount']?></div>
                                <span class="card-icon iconfont icon-user"></span>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__red am-cf">
                            <div class="card-header">合伙人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['hehuoren']?></div>
                                <span class="card-icon iconfont icon-user"></span>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">代言人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['yuangong']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">商户总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['xiaji']['shanghuCount']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                <?php elseif ($agentInfo['type'] == 1 && $agentInfo['level']==1): ?>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__red am-cf">
                            <div class="card-header">合伙人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['hehuoren']?></div>
                                <span class="card-icon iconfont icon-user"></span>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">代言人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['yuangong']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">商户总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['xiaji']['shanghuCount']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                <?php elseif ($agentInfo['type'] == 1 && $agentInfo['level']==2): ?>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__red am-cf">
                            <div class="card-header">合伙人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['hehuoren']?></div>
                                <span class="card-icon iconfont icon-user"></span>
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">代言人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['yuangong']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                    <!--<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">代言人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?/*=$data['yuangong']*/?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>-->
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">商户总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['xiaji']['shanghuCount']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                <?php elseif ($agentInfo['type'] == 2 && $agentInfo['level']==1): ?>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">商户总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['xiaji']['shanghuCount']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                <?php elseif ($agentInfo['type'] == 2 && $agentInfo['level']==2): ?>
                    <!--<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">代言人总数</div>
                            <div class="card-body">
                                <div class="card-value"><?/*=$data['yuangong']*/?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>-->
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">商户总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['xiaji']['shanghuCount']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                <?php elseif ($agentInfo['type'] == 3): ?>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                        <div class="widget-card card__violet am-cf">
                            <div class="card-header">商户总数</div>
                            <div class="card-body">
                                <div class="card-value"><?=$data['xiaji']['shanghuCount']?></div>
                                <span class="card-icon iconfont icon-order"></span>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
            </div>
            <div class="am-u-sm-6 am-u-md-6 am-u-lg-12 am-margin-bottom" style="width: 1440px;">

                <div class="widget-head">
                    <div class="widget-title">商户交易流水统计</div>
                </div>
                <div class="widget am-cf su-box" >
                    <div class="widget-head">
                        <div class="widget-title">业务数据</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">下级代理(人)</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['xiaji']['dailiCount'] ?></div>
                            </div>
                        </div>
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.2rem;">商户数量</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['xiaji']['shanghuCount'] ?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">今日流水</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易金额（元）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['today']['money'] ?></div>
                            </div>
                        </div>
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class="card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.2rem;">交易笔数（笔）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['today']['amount'] ?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">昨日流水</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6" >
                            <div class=" am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易金额（元）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['yesterday']['money']?></div>
                            </div>
                        </div>
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6 ">
                            <div class=" card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易笔数（笔）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['yesterday']['amount']?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">本月流水</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6" >
                            <div class=" am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易金额（元）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['month']['money']?></div>
                            </div>
                        </div>
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易笔数（笔）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['month']['amount']?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">上月流水</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6" >
                            <div class=" am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易金额（元）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['water']['lastMonth']['money']?></div>
                            </div>
                        </div>
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(102, 102, 102); font-size: 1.3rem;">交易笔数（笔）</div>
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $data['water']['lastMonth']['amount'] ?></div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="am-u-sm-6 am-u-md-6 am-u-lg-12 am-margin-bottom" style="width: 1440px;">
                <div class="widget-head">
                    <div class="widget-title">商户新增统计</div>
                </div>
                <div class="widget am-cf su-box" >
                    <div class="widget-head">
                        <div class="widget-title">总新增数量</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['shanghucount']['total']['amount'] ?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">今日新增数量</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class="card am-cf">
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['shanghucount']['today']['amount'] ?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">昨日新增数量</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6 ">
                            <div class=" card am-cf">
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['shanghucount']['yesterday']['amount']?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">本月新增数量</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['shanghucount']['month']['amount']?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="widget am-cf su-box">
                    <div class="widget-head">
                        <div class="widget-title">上月新增数量</div>
                    </div>
                    <div class="widget-body am-cf" style="margin-top: 20px">
                        <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                            <div class=" card am-cf">
                                <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $data['shanghucount']['lastMonth']['amount'] ?></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php if ($agentInfo['type'] != 3): ?>
                <div class="am-u-sm-6 am-u-md-6 am-u-lg-12 am-margin-bottom" style="width: 1440px;">
                    <div class="widget-head">
                        <div class="widget-title">代理分红统计</div>
                    </div>
                    <div class="widget am-cf su-box" >
                        <div class="widget-head">
                            <div class="widget-title">历史分红总金额</div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                                <div class=" card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['fenhon']['lishi']?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget am-cf su-box">
                        <div class="widget-head">
                            <div class="widget-title">可提现分红金额</div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                                <div class="card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['fenhon']['ketixian'] ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget am-cf su-box">
                        <div class="widget-head">
                            <div class="widget-title">已提现待审核金额</div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6 ">
                                <div class=" card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['fenhon']['dongjie']?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget am-cf su-box">
                        <div class="widget-head">
                            <div class="widget-title">今日分红金额</div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                                <div class=" card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$data['fenhon']['today']?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget am-cf su-box">
                        <div class="widget-head">
                            <div class="widget-title">昨日分红金额</div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                                <div class=" card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $data['fenhon']['yesterday'] ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget am-cf su-box">
                        <div class="widget-head">
                            <div class="widget-title">本月分红金额</div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                                <div class=" card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $data['fenhon']['month'] ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget am-cf su-box">
                        <div class="widget-head">
                            <div class="widget-title">上月分红金额 </div>
                        </div>
                        <div class="widget-body am-cf" style="margin-top: 20px">
                            <div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
                                <div class=" card am-cf">
                                    <div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $data['fenhon']['lastmonth'] ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
</div>
<script src="assets/common/js/echarts.min.js"></script>
<script src="assets/common/js/echarts-walden.js"></script>
